package com.erp.erp_entitys.ProcessCustomer2;

import java.io.Serializable;

/**
 * @author 
 * 供应商表id与流程id关系表
 */
public class ProcessCustomer2Entity implements Serializable {
    private String processid;

    private Integer customerid;

    private static final long serialVersionUID = 1L;

    public String getProcessid() {
        return processid;
    }

    public void setProcessid(String processid) {
        this.processid = processid;
    }

    public Integer getCustomerid() {
        return customerid;
    }

    public void setCustomerid(Integer customerid) {
        this.customerid = customerid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProcessCustomer2Entity other = (ProcessCustomer2Entity) that;
        return (this.getProcessid() == null ? other.getProcessid() == null : this.getProcessid().equals(other.getProcessid()))
            && (this.getCustomerid() == null ? other.getCustomerid() == null : this.getCustomerid().equals(other.getCustomerid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProcessid() == null) ? 0 : getProcessid().hashCode());
        result = prime * result + ((getCustomerid() == null) ? 0 : getCustomerid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", processid=").append(processid);
        sb.append(", customerid=").append(customerid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}